@media (min-width: 992px) {
  body.fullcontent:not(.floating):not(.docked) #quarto-content.page-columns {
    grid-template-columns: [screen-start] 1.5rem [screen-start-inset page-start page-start-inset body-start-outset body-start body-content-start] minmax(0px, 1fr) [body-content-end body-end body-end-outset page-end-inset page-end screen-end-inset] 1.5rem [screen-end];
  }
}
@media (max-width: 991.98px) {
  body.fullcontent:not(.floating):not(.docked) #quarto-content.page-columns {
    grid-template-columns: [screen-start] 1.5rem [screen-start-inset page-start page-start-inset body-start-outset body-start body-content-start] minmax(0px, 1fr) [body-content-end body-end body-end-outset page-end-inset page-end screen-end-inset] 1.5rem [screen-end];
  }
}

.eyebrow {
  color: rgb(228 25 186 / 67%);
  text-align: center;
  /* margin-left: auto; */
  margin-right: auto;
  width: fit-content;
  /* font-variant: petite-caps; */
  font-variant: all-small-caps;
  /* text-transform: uppercase; */
}
.eyebrow .rule {
  width: 46px;
  height: 1px;
  align-self: center;
}
/* .eyebrow .rule:first-of-type { */
.eyebrow :nth-child(1 of .rule) {
  background: linear-gradient(-90deg, rgb(228 25 186 / 67%), transparent);
}
/* .eyebrow .rule:nth-of-type(2) */
.eyebrow :nth-child(2 of .rule) {
  background: linear-gradient(90deg, rgb(228 25 186 / 67%), transparent);
}
@media (max-width: 515px) {
  .eyebrow .rule {
    margin: 0 !important;
  }
}

.eyebrow > p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}
.eyebrow p > .span {
  flex: 0 1 auto;
}

h1 {
  font-size: clamp(2.25rem, 7vw + 1rem, 5rem);
  margin-top: 1rem;
  /* opacity: 1;
  transition: opacity 1.5s ease-in-out;
  @starting-style {
    opacity: 0;
  } */
}
h2 {
  font-size: clamp(2.25rem, 5vw + 1rem, 3.5rem);
  border-bottom: none;
}

.blockquote {
  max-width: 600px;
  /* text-align: right;
  padding-right: 1.25rem; */
  /* color: rgb(236 193 135 / 100%); */
  /* border-right: .25rem solid; */
  /* border-right: .25rem solid rgb(236 193 135 / 50%); */
  /* border-right: .25rem solid #ecf0f1;
  border-right: .25rem solid #ecc187;
  border-right: .25rem solid #4e734d; */
  border-left: unset;
}
.ltr .blockquote {
  text-align: right;
  padding-right: 1.25rem;
  border-right: .25rem solid;
}
.rtl .blockquote {
  text-align: left;
  padding-left: 1.25rem;
  border-left: .25rem solid;
}
.q1 .blockquote {
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
}
.q2 .blockquote {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  margin-left: 30px;
}
@media (max-width: 576px) {
  .q2 .blockquote {
    margin-left: 25px;
  }
}
.blockquote em {
    /* 1. Define the linear gradient background */
  background: linear-gradient(-135deg, rgb(249 189 110) 10%, rgb(228 25 186 / 67%) 100%);
  padding: 0px 0px 0px 2px;
  /* 2. Clip the background tightly to the letters */
  -webkit-background-clip: text;
  background-clip: text;
  /* 3. Hide the text fill color to reveal the background */
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Keeps the gradient uniform across line wraps */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.reveal.ltr {
  display: block; /* Forces block layout context */
  width: 100%;    /* Ensures explicit width calculation */
  /* CSS Mask configuration */
  /* Create a gradient mask that is initially hidden on the right */
  /* -webkit-mask-image: linear-gradient(to right, black 50%, transparent 100%); */
  /* mask-image: linear-gradient(to right, black 50%, transparent 100%); */
  /* OLD */
  /* mask-image: linear-gradient(90deg, rgb(0 0 0) 50%, transparent 100%); */
  /* mask-image: linear-gradient(-90deg, black, transparent 100%); */
  /* Size the mask large enough to transition across the element */
  /* -webkit-mask-size: 200% 100%; */
  /* mask-size: 200% 100%; */
  mask-size: 200% 200%;
  mask-image: linear-gradient(135deg, rgb(255 255 255) 45%, transparent 55%);
  mask-position: 100% 100%;
  -webkit-mask-position: 100% 100%;
  /* mask-position: 100% 0; */
  /* mask-position: 200% 0; */
  /* Smooth transition effect */
  /* transition: -webkit-mask-position 3s ease-in-out, mask-position 3s ease-in-out; */
  /* transition: -webkit-mask-position 2.5s ease-in-out 1s, mask-position 2.5s ease-in-out 1s; */
  transition: -webkit-mask-position 3s ease-in-out, mask-position 3s ease-in-out;
  /* transition: -webkit-mask-position 3s ease-in-out, mask-position 3s ease-in-out, opacity 5s ease-in-out; */
  /* transition: -webkit-mask-position 5s ease-in-out .1s, mask-position 5s ease-in-out .1s, opacity 5s ease-in-out .1s; */
  /* transition: -webkit-mask-position 1.5s ease-in-out, mask-position 1.5s ease-in-out, opacity 1.5s ease-in-out; */
  /* transition: -webkit-mask-position 5s ease-in-out, mask-position 5s ease-in-out, opacity 5s ease-in-out; */
  opacity: 0;
}
/* Trigger state: Add this class via JS or use a :hover state */
.reveal.ltr.in {
  -webkit-mask-position: 0% 0%;
  mask-position: 0% 0%;
  /* opacity: 1 !important; */
}
/* Trigger state: Add this class via JS or use a :hover state */
.reveal.rtl {
  /* -webkit-mask-position: 0 0; */
  display: block; /* Forces block layout context */
  width: 100%;
  width: fit-content;
  mask-position: 0% 0%;
  transition: -webkit-mask-position 3s ease-in-out, mask-position 3s ease-in-out;
  mask-size: 200% 200%;
  mask-image: linear-gradient(315deg, rgb(255 255 255) 45%, transparent 55%);
}
.reveal.rtl.in {
  /* -webkit-mask-position: 100% 100%; */
  mask-position: 100% 100%;
}

/* HERO */
.hero :nth-child(2):has(img.bg) {
  flex: 1;
  padding-left: 40px;
  max-width: 42%;
  height: 0;
}
.hero {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.wrap {
  flex: 1;
  width: fit-content;
}
.hero .statement {
  color: rgba(58, 100, 57);
  max-width: 600px;
  text-align: justify;
  font-size: 1.02em;
}
@media (max-width: 752px) {
  .hero {
    flex-direction: column; /* Stacks image at the bottom on mobile */
  }
  .hero :nth-child(2):has(img.bg) {
    max-width: 100%;
    padding: 20px 0px 0px 0px;
    text-align: center;
  }
  .hero img.bg {
    float: none;
  }
}
.hero .bg:hover {
  border-color: rgba(62, 106, 61, .9);
  transform: translateY(-5px);
}
.hero .bg {
  border: 5px solid transparent;
  max-height: 850px;
  float: right;
  box-shadow: 10px 10px 20px 0px rgb(0 0 0 / 40%);
  transition: border 1s ease-in-out, transform 1s ease-in-out; 
  /* position: absolute;
  inset: 0; */
  /* position: relative; */
  /* Fallback for older browsers */
  /* height: 100vh;  */
  /* Modern standard: fits mobile screens perfectly with or without address bars */
  /* height: 100dvh;
  max-height: 780px;   
  flex: 1;
  position: relative;
  max-width: 50%;
  overflow: hidden;
  max-height: auto; */
  /* background-image: url('../img/_DSC9269-2x3.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right; */
}
@media (min-width: 752px) and (max-width: 1047px) {
  .grid {
    width: 93vw;
    margin-right: -40vw;
  }
}
body, html {
  overflow-x: hidden; /* Clips any invisible micro-pixels running off the screen edge */
}

/* JOURNAL */
.journal div.card section.card-body {
  border-width: 2px 0px 0px 0px;
}
.journal .ratio-16x9 {
  --bs-aspect-ratio: 62.5%;
}

/* MESSAGE */
.message {
  margin-top: 3rem;
}
.message > section {
  width: auto;
}
.message h2 {
  text-align: center;
}

/* GRIDS */
.grid {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Flex Box Splits */
.split.col {
  flex-direction: column;
}
.split.row {
  flex-direction: row;
}
/* Mobile */
@media (max-width: 576px) {
  .split.sm {
    display: flex;
  }
}


/* Initial hidden state */
/* .reveal:not(.ltr) { */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.5s ease-in-out, transform 1.5s ease;
}
/* State when scrolled into view */
.reveal.in {
  opacity: 1;
  transform: none;
}

div.card > p {
  margin-bottom: 0;
}
div.card {
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
  border: 3px solid rgba(62, 106, 61, .9);
  border-radius: unset;
  height: 100%;
  display: flex;
  flex-direction: column;
}
div.card:hover {
  transform: translateY(-5px); /* Moves the card up slightly */
  /* Adds a soft drop shadow */
  /* box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  box-shadow: 0 10px 20px rgb(41 70 40 / 90%); */
  box-shadow: 0 10px 20px rgb(58 102 56 / 40%);
}
div.card section.card-body {
  text-align: center;
  padding: 0;
  border-width: 1.5px 0px 0px 0px;
  border-color: rgba(62, 106, 61, .9);
  border-style: solid;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  /* Centers items along the vertical axis */
  flex-grow: 1;            /* Forces the body to fill all remaining card space */
}
div.card section.card-body .card-body-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
div.card section.card-body p {
  margin-bottom: 0.5rem;
}
@media (max-width: 576px) {
  div.card h3 {
    margin-top: 1rem;
  }
  div.card section.card-body > p:last-of-type {
    margin-bottom: 0;
  }
}
.ratio img, .ratio video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
video.loop {
  /* Force iOS Chrome to use hardware GPU layers, preventing disappearing bugs */
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
div.card .euler img {
  object-position: 50% 42%;
}