/* About Solaris */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px clamp(32px, 6vw, 96px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pillar {
  padding: 30px 26px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(36, 26, 18, 0.06);
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -30px rgba(90, 45, 20, 0.35);
}

.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(241, 89, 34, 0.1);
  color: var(--accent);
}

.pillar__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.2;
  color: var(--ink);
}

.pillar p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.xcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.xcard {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(36, 26, 18, 0.06);
}

.xcard__media {
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.xcard__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px 28px;
}

.xcard__title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.15;
  color: var(--ink);
}

.xcard__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.xcard .link-arrow {
  align-self: flex-start;
  margin-top: 8px;
}

.latest {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px clamp(32px, 6vw, 96px);
}

.latest .link-arrow {
  margin-top: 24px;
}

.latest__list li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 6px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.latest__list li:first-child {
  border-top: 1px solid var(--line);
}

.latest__list b {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
}

.latest__list span {
  font-size: 15px;
  color: var(--text-muted);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 30px;
  border-radius: 18px;
  background: var(--bg-card);
}

.quote blockquote {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}

.quote figcaption b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.quote figcaption span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 1060px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xcards,
  .quotes {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .intro,
  .latest {
    grid-template-columns: 1fr;
  }

  .latest__list li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   Scroll effects (driven by js/about-solaris.js + ScrollMagic).
   Every rule here is a resting state that also reads fine without JS;
   the script only feeds --drift / --p and inline translate / opacity.
   ========================================================== */

/* hero: lines rise from a mask and the photo settles on load */
.hero__ln {
  display: block;
  overflow: hidden;
  /* room for descenders and the italic overhang */
  padding: 0 0.12em 0.1em 0;
  margin-bottom: -0.1em;
}

.hero__ln > span {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__img {
    animation: abSettle 2.6s var(--ease) both;
  }

  .hero .crumbs {
    animation: abRise 0.9s var(--ease) 0.15s both;
  }

  .hero__ln > span {
    animation: abLine 1.2s var(--ease) 0.3s both;
  }

  .hero__sub {
    animation: abRise 1s var(--ease) 0.7s both;
  }
}

@keyframes abSettle {
  from {
    scale: 1.12;
  }
  to {
    scale: 1;
  }
}

@keyframes abRise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes abLine {
  from {
    transform: translate3d(0, 110%, 0);
  }
  to {
    transform: none;
  }
}

/* intro: a huge, faint "SOLARIS" sits on the section's bottom edge with
   ~80% of its letter height showing. Hanken Grotesk 800 metrics (per em):
   word width 3.98, cap height 0.72, baseline 0.85 down a line-height-1 box,
   so bottom -0.294em hides the lowest 20% of the caps (0.144em) */
.section--intro {
  --mark: min(calc((100vw - 2 * var(--gutter)) / 4), 295px);
  overflow: hidden;
  isolation: isolate;
  /* room under the stats for the visible 0.576em of the word */
  padding-bottom: calc(var(--mark) * 0.576 + clamp(28px, 4vw, 56px));
}

.about-mark {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -0.294em;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--mark);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(36, 26, 18, 0.045);
  pointer-events: none;
  user-select: none;
  transform: translateX(-50%);
}

.stats dd {
  font-variant-numeric: tabular-nums;
}

/* pillars: the icon fills orange once its card has risen in */
.pillar__icon {
  transition: background 0.5s ease, color 0.5s ease, transform 0.6s var(--ease);
}

.pillar.is-shown .pillar__icon {
  background: var(--accent);
  color: #FFFFFF;
  transform: rotate(-8deg) scale(1.04);
}

.pillar.is-shown:hover .pillar__icon {
  transform: rotate(0) scale(1.1);
}

/* discover cards: the photo drifts inside its window (±18px, matched by
   the 36px oversize) */
.xcard__media img {
  display: block;
  height: calc(100% + 36px);
  margin-top: -18px;
  translate: 0 var(--drift, 0px);
}

.xcard {
  transition: box-shadow 0.5s ease;
}

.xcard:hover {
  box-shadow: 0 30px 50px -30px rgba(90, 45, 20, 0.35);
}

/* news rows slide in from the right: keep them from widening the page
   (clip, unlike hidden, leaves the sticky heading below working) */
.latest {
  overflow-x: clip;
}

/* news: the heading stays in view beside the list on wide screens */
@media (min-width: 761px) {
  .latest > div:first-child {
    position: sticky;
    top: calc(var(--nav-h) + 40px);
    align-self: start;
  }
}

/* news: a rail down the left fills with scroll; each row's dot lights up
   as the fill passes it */
.latest__list {
  position: relative;
  padding-left: 36px;
}

.latest__list::before,
.latest__list::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.latest__list::after {
  background: var(--accent);
  transform: scaleY(var(--p, 1));
  transform-origin: top;
}

.latest__list li {
  position: relative;
}

.latest__list li::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 26px;
  left: -34px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid rgba(36, 26, 18, 0.2);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.latest__list li.is-reached::before,
.latest__list:not([style]) li::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(241, 89, 34, 0.14);
}

.latest__list b {
  transition: color 0.35s ease;
}

.latest__list li:hover b {
  color: var(--accent);
}

/* quotes: an oversized quote mark floats up through each card */
.quote {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(36, 26, 18, 0.06);
}

.quote::before {
  content: "\201C";
  position: absolute;
  z-index: -1;
  right: 20px;
  bottom: -96px;
  font-family: var(--font-serif);
  font-size: 200px;
  line-height: 1;
  color: rgba(241, 89, 34, 0.12);
  translate: 0 var(--drift, 0px);
}

/* ==========================================================
   Grid backdrop (.gridsec — the Discover section)
   The Home "Solaris Values" look on this one section: champagne gradient +
   fine orange grid, with short lights travelling along its lines. The field
   and its lights are built by js/about-solaris.js ("Discover grid"); the
   lights ride exactly on the grid lines (multiples of --cell)
   ========================================================== */
.gridsec {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 600px at 92% 0%, rgba(214, 181, 128, 0.26), transparent 70%),
    radial-gradient(ellipse 55% 600px at 0% 100%, rgba(214, 181, 128, 0.18), transparent 70%),
    linear-gradient(180deg, #F4ECDF 0%, #FBF8F2 50%, #F6EFE4 100%);
}

.gridbg {
  --cell: 64px;
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(241, 89, 34, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 89, 34, 0.09) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  /* soften toward the left/right edges */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35), #000 22%, #000 78%, rgba(0, 0, 0, 0.35));
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35), #000 22%, #000 78%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.gridbg__h,
.gridbg__v i {
  position: absolute;
  box-shadow: 0 0 8px 1px rgba(241, 89, 34, 0.35);
}

/* a light running across one horizontal line */
.gridbg__h {
  top: calc(var(--row) * var(--cell));
  left: 0;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, rgba(241, 89, 34, 0), rgba(241, 89, 34, 0.95), rgba(241, 89, 34, 0));
  animation: gridbg-x var(--dur, 12s) linear var(--delay, 0s) infinite;
  will-change: transform;
}

/* a vertical line's light: the full-height track moves (its translate %
   is the section height), carrying the 180px light at its top */
.gridbg__v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--col) * var(--cell));
  width: 1px;
  animation: gridbg-y var(--dur, 10s) linear var(--delay, 0s) infinite;
  will-change: transform;
}

.gridbg__v i {
  top: 0;
  left: 0;
  width: 1px;
  height: 180px;
  background: linear-gradient(180deg, rgba(241, 89, 34, 0), rgba(241, 89, 34, 0.95), rgba(241, 89, 34, 0));
}

@keyframes gridbg-x {
  from {
    transform: translateX(-200px);
  }
  to {
    transform: translateX(100vw);
  }
}

@keyframes gridbg-y {
  from {
    transform: translateY(-200px);
  }
  to {
    transform: translateY(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gridbg__h,
  .gridbg__v {
    display: none;
  }
}
