.home-expedition { padding: 144px 48px 0; }
.home-expedition__intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1120px;
  margin-inline: auto;
}
.home-expedition__identity {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.cluster-light .home-expedition h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.home-expedition__period { color: var(--site-yellow); }
.home-expedition__copy > p {
  max-width: 450px;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}
/* Keep the full paragraph in flow so typing never shifts the links below it. */
.home-expedition__copy > p[data-home-typing] { position: relative; }
.home-expedition__copy > p:is(.is-typing, .is-typed) .home-expedition__typing-source { opacity: 0; }
.home-expedition__typing-layer { position: absolute; inset: 0; pointer-events: none; }
.home-expedition__typing-source::before, .home-expedition__typing-layer::before { content: '“'; color: var(--site-yellow); }
.home-expedition__typing-source::after { content: '”'; color: var(--site-yellow); }
.home-expedition__typing-quote { color: var(--site-yellow); }
.home-expedition__typing-cursor { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--site-yellow); animation: home-typing-caret .8s step-end infinite; }
@keyframes home-typing-caret { 50% { opacity: 0; } }
.home-expedition__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.home-expedition__actions a { gap: 10px; padding: 11px 18px; }
.home-expedition .engraving-icon { flex-shrink: 0; width: 20px; height: 20px; transition: transform 200ms ease; }
.home-expedition__actions a:hover .engraving-icon { transform: translateX(3px); }
.home-expedition__connections { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.home-expedition__portrait {
  width: clamp(144px, 14vw, 176px);
  aspect-ratio: 1;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
}
.home-expedition__portrait img {
  width: 320%;
  height: auto;
  max-width: none;
  transform: translate(-36%, -64%);
  filter: grayscale(1);
}
.home-expedition__socials { display: flex; gap: 4px; margin-left: -10px; }
.home-expedition__socials a {
  --social-hover-color: #fff;
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition: background-color 180ms ease, color 180ms ease;
}
.home-expedition__socials .home-expedition__social--linkedin { --social-hover-color: #0a66c2; }
.home-expedition__socials .home-expedition__social--contact { --social-hover-color: #c49a6c; }
.home-expedition__socials a:is(:hover, :focus-visible) {
  background: #0c0c0c;
  color: var(--social-hover-color);
}
.home-expedition__socials a:focus-visible {
  outline: 2px solid var(--site-ink);
  outline-offset: 3px;
}
.home-expedition__landscape {
  position: relative;
  aspect-ratio: 2048 / 1373;
  margin: 72px -48px 0;
  overflow: hidden;
  isolation: isolate;
}
.home-expedition__mountains {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
  filter: grayscale(1);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent 100%), url("../images/home/quiet-sky-mask.19ee559fd613.svg");
  mask-size: 100% 100%, cover;
  mask-position: center, 50% 53%;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}
.home-expedition__cloud { position: absolute; height: auto; pointer-events: none; animation: alpine-drift 16s ease-in-out infinite alternate; }
.home-expedition__cloud--far { top: clamp(12px, 3%, 32px); left: 9%; width: 23%; opacity: .6; }
.home-expedition__cloud--near { top: clamp(20px, 5%, 48px); right: 6%; width: 31%; opacity: .85; animation-duration: 22s; animation-delay: -9s; animation-direction: alternate-reverse; }
.home-expedition__wind {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--site-ink);
  pointer-events: none;
}
.home-expedition__gust-lines {
  opacity: .22;
  stroke-dasharray: 42 9 18 7 32 12;
  animation: alpine-gust var(--gust-duration, 7s) var(--gust-delay, 0s) linear infinite;
}
.home-expedition__gust-lines path { vector-effect: non-scaling-stroke; }
.home-expedition__landscape.is-motion-paused .home-expedition__cloud,
.home-expedition__landscape.is-motion-paused .home-expedition__gust-lines { animation-play-state: paused; }
.home-expedition__hiker {
  position: absolute;
  top: var(--hiker-y, 84.5%);
  left: var(--hiker-x, 50.4%);
  width: 218px;
  max-width: calc(100% - 32px);
  padding-bottom: 14px;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
.home-expedition__bubble {
  position: relative;
  margin: 0;
  padding: 14px 18px;
  color: var(--site-ink);
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Vollkorn', cursive;
  font-size: .875rem;
  line-height: 1.35;
  text-align: center;
  transform-origin: 50% 100%;
}
.home-expedition__bubble-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% + 14px);
  overflow: visible;
  fill: var(--site-white);
  stroke: var(--site-ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-expedition__bubble-sketch { fill: none; stroke-width: .65; opacity: .45; }
.home-expedition__bubble > span { position: relative; }
.home-expedition__hiker.is-pending .home-expedition__bubble { opacity: 0; }
.home-expedition__hiker.is-revealed .home-expedition__bubble { animation: hiker-greeting 700ms ease-out both; }
@keyframes hiker-greeting {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes alpine-drift {
  from { transform: translate3d(-12%, 5px, 0); }
  to { transform: translate3d(12%, -7px, 0); }
}
@keyframes alpine-gust {
  0% { opacity: 0; transform: translate(-16px, 3px); stroke-dashoffset: 120; }
  20% { opacity: var(--gust-opacity, .35); }
  65% { opacity: var(--gust-opacity, .35); }
  100% { opacity: 0; transform: translate(var(--gust-travel, 52px), -5px); stroke-dashoffset: -120; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .home-expedition__intro { grid-template-columns: 1fr; gap: 32px; }
  .cluster-light .home-expedition h1 { font-size: 3.5rem; }
}
@media (max-width: 767px) {
  .home-expedition { padding: 104px 24px 0; }
  .home-expedition__intro { grid-template-columns: 1fr; gap: 28px; }
  .home-expedition__identity { gap: clamp(16px, 4vw, 24px); }
  .home-expedition__portrait { width: clamp(96px, 28vw, 152px); }
  .cluster-light .home-expedition h1 { font-size: clamp(2rem, 8.6vw, 3.5rem); }
  .home-expedition__copy > p { max-width: 520px; }
  .home-expedition__connections { margin-top: 20px; }
  .home-expedition__landscape { height: clamp(320px, 65vw, 480px); aspect-ratio: auto; margin: 40px -24px 0; }
  .home-expedition__mountains { object-position: 52% 50%; mask-position: center, 52% 50%; }
  .home-expedition__cloud--far { top: 14px; left: 6%; width: 36%; }
  .home-expedition__cloud--near { top: 20px; right: 7%; width: 44%; }
  .home-expedition__hiker { width: 160px; }
  .home-expedition__bubble { padding: 10px 12px; font-size: .75rem; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .home-expedition__socials a { transition: none; }
  .home-expedition__cloud, .home-expedition__gust-lines { animation: none; }
  .home-expedition__typing-cursor { animation: none; }
  .home-expedition .engraving-icon { transition: none; }
  .home-expedition__hiker.is-pending .home-expedition__bubble { opacity: 1; }
  .home-expedition__hiker.is-revealed .home-expedition__bubble { animation: none; }
}
