.reading-progress {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  height: 3px;
  background: #a9e892;
  transform: scaleX(clamp(0, var(--read, 0), 1));
  transform-origin: left;
  pointer-events: none;
}

.hero {
  overflow: hidden;
  padding-block: clamp(2.1rem, 3.8vw, 3.25rem) 1.5rem;
  background: radial-gradient(ellipse at 50% 85%, #3e6959 0%, #214239 45%, #102629 83%);
}
.hero-copy { text-align: center; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .8rem;
  color: #d5e9d6;
  font-size: .81rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.hero-tag::before { content: ""; width: 1.7rem; height: 2px; background: var(--mint); }
.hero h1 {
  max-width: none;
  font-size: clamp(3.15rem, 6.3vw, 6rem);
  text-wrap: balance;
}
.hero h1 em { display: inline; margin-top: 0; }
.hero-copy > p { max-width: 60ch; margin-inline: auto; margin-top: .85rem; }
.hero-actions { justify-content: center; margin-top: 1.05rem; }

.portfolio {
  --portfolio-width: min(60vw, 57rem);
  margin-top: clamp(1.75rem, 3.2vw, 2.25rem);
}
.portfolio-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(17rem, 29vw, 30rem);
  overflow: clip;
  perspective: 1250px;
}
.portfolio-stage::before {
  content: "";
  position: absolute;
  inset: 0 max(1.5rem, calc((100% - 84rem) / 2)) 0;
  border-block: 1px solid #b9ddba29;
  background: repeating-linear-gradient(90deg, transparent 0 12.4%, #c8ecd41c 12.4% 12.5%);
  mask-image: linear-gradient(transparent 2%, black 14% 80%, transparent 99%);
  pointer-events: none;
}
.portfolio-card {
  position: absolute;
  display: grid;
  width: var(--portfolio-width);
  height: 92%;
  top: 3%;
  left: 50%;
  grid-template-columns: .48fr .52fr;
  overflow: hidden;
  color: #192b26;
  border-radius: 1rem;
  border: 1px solid #e4eee0aa;
  background: #f1eddf;
  box-shadow: 0 1.15rem 3.25rem #0b16158c;
  container-type: inline-size;
  transform-origin: center;
  transform: translateX(calc(-50% + var(--slide-x, 0%))) translateY(var(--slide-y, 0%)) rotateY(var(--angle, 0deg)) rotateZ(var(--slant, 0deg)) scale(var(--zoom, 1));
  transition: transform .84s cubic-bezier(.2, .66, .14, 1), filter .65s ease, opacity .65s ease;
}
.portfolio-card[data-slot="current"] { z-index: 3; }
.portfolio-card[data-slot="previous"] {
  --slide-x: -87%; --slide-y: 1%; --angle: 14deg; --slant: -7deg; --zoom: .82;
  z-index: 1;
  filter: brightness(.76) saturate(.82);
}
.portfolio-card[data-slot="next"] {
  --slide-x: 87%; --slide-y: 3%; --angle: -14deg; --slant: 6deg; --zoom: .82;
  z-index: 1;
  filter: brightness(.76) saturate(.82);
}
.portfolio-card:nth-child(2) { background: #edd1b9; }
.portfolio-card:nth-child(3) { background: #cee0d9; color: #172e28; }
.portfolio-photo {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.portfolio-photo img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card:first-child img { object-position: 48% 48%; }
.portfolio-card:nth-child(2) img { object-position: 50% 54%; }
.portfolio-card:nth-child(3) img { object-position: 56% 50%; }
.portfolio-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  gap: .7rem;
  padding: clamp(.85rem, 4.4cqw, 2.45rem);
}
.portfolio-kicker {
  font: 820 clamp(.61rem, 1.65cqw, .84rem)/1.1 var(--heading);
  letter-spacing: .115em;
  text-transform: uppercase;
}
.portfolio-art-heading {
  display: block;
  font: italic 400 clamp(1.86rem, 12cqw, 6.25rem)/.84 "Instrument Serif", Georgia, serif;
  letter-spacing: -.027em;
}
.portfolio-card-copy p {
  max-width: 25ch;
  font-size: clamp(.63rem, 2.05cqw, 1rem);
  line-height: 1.3;
  font-weight: 750;
}
.portfolio-card:nth-child(3) .portfolio-art-heading { font-size: clamp(1.66rem, 8.7cqw, 5.2rem); }
.portfolio-card:nth-child(3) .portfolio-photo { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.portfolio-card:nth-child(3) .portfolio-photo img { min-height: 0; }
.portfolio-status {
  display: flex;
  gap: .48rem;
  align-items: center;
  padding: .9em 1.12em;
  color: #edf3e5;
  background: #273e36;
  font-size: clamp(.64rem, 2.05cqw, .95rem);
  font-weight: 800;
}
.portfolio-status::before { content: ""; width: .52em; height: .52em; border-radius: 50%; flex: 0 0 .52em; background: #ffd396; }

.portfolio-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}
.portfolio-choices { display: flex; gap: .36rem; justify-content: center; flex-wrap: wrap; }
.portfolio-controls button {
  appearance: none;
  min-height: 2.75rem;
  padding: .42rem .86rem;
  border-radius: .35rem;
  border: 1px solid #d8f2dd52;
  color: #e9f1e6;
  background: #173530;
  font-size: .84rem;
  font-weight: 800;
}
.portfolio-controls button:hover { background: #2e5349; }
.portfolio-controls button[aria-pressed="true"] { color: #132b23; border-color: #d9f4ac; background: #d9f4ac; }
.portfolio-controls .portfolio-arrow { min-width: 2.75rem; font-size: 1.13rem; padding: .35rem; }
.portfolio-caption {
  min-height: 1.3rem;
  margin-top: .75rem;
  text-align: center;
  color: #dcebdc;
  font-size: .79rem;
}
.portfolio.is-moving .portfolio-card[data-slot="current"] .portfolio-photo img {
  animation: portfolio-pan 5.2s cubic-bezier(.1, .5, .6, 1) both;
}
.portfolio.is-enhanced .portfolio-card:not([data-slot="current"]) { pointer-events: none; }
@keyframes portfolio-pan {
  from { transform: scale(1.035) translateX(-.6%); }
  to { transform: scale(1.10) translateX(1%); }
}

@media (max-width: 950px) {
  .portfolio { --portfolio-width: min(67vw, 44rem); }
  .portfolio-stage { min-height: clamp(16rem, 41vw, 23rem); }
}
@media (max-width: 620px) {
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4rem); }
  .portfolio { --portfolio-width: 83vw; margin-top: 1.55rem; }
  .portfolio-stage { min-height: clamp(12rem, 54vw, 17rem); }
  .portfolio-card { border-radius: .65rem; grid-template-columns: .52fr .48fr; }
  .portfolio-card[data-slot="previous"] { --slide-x: -96%; --zoom: .73; --slant: -5deg; }
  .portfolio-card[data-slot="next"] { --slide-x: 96%; --zoom: .73; --slant: 5deg; }
  .portfolio-arrows { display: none; }
  .portfolio-controls button { padding: .4rem .59rem; font-size: .76rem; }
  .portfolio-card-copy p { max-width: 23ch; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-card { transition: none; }
  .portfolio.is-moving .portfolio-card[data-slot="current"] .portfolio-photo img { animation: none; }
}

.industries ul { margin-block: 0; }
.industries li { display: flex; align-items: center; gap: .42rem; }
.industries li::before {
  content: "";
  flex: 0 0 .36rem;
  height: .36rem;
  border-radius: 50%;
  background: #41836e;
}

.pricing .section-heading h2, .process h2, .demo-copy h2 { text-wrap: balance; }
.package {
  border-top: 3px solid #97b09d;
  transition: border-color .22s ease, box-shadow .22s ease, translate .22s ease;
}
.package.highlighted { border-top-color: #43826b; }
.package:focus-within { border-color: #43826b; box-shadow: 0 16px 36px #25463719; }
.monthly-plan .price { font-variant-numeric: tabular-nums; }

.demo-section {
  background: radial-gradient(ellipse at top right, #3b6c50, transparent 66%), #193b34;
}
.demo-photo { min-width: 0; }
.demo-picture { position: relative; }
.demo-photo img { aspect-ratio: 8 / 5; }
.demo-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: min(100% - 2rem, 17rem);
  display: grid;
  gap: .4rem;
  border: 1px solid #9aa89a;
  border-radius: .65rem;
  padding: .73rem .92rem;
  color: #15302e;
  background: #fcfcf3;
  box-shadow: 0 10px 32px #06141155;
}
.demo-overlay small { font-size: .75rem; font-weight: 800; color: #425e50; }
.demo-overlay strong { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.demo-overlay strong::before { content: ""; width: .5rem; height: .5rem; flex: 0 0 .5rem; border-radius: 50%; background: #9e661e; }
.demo-overlay p { font-size: .76rem; }
.demo-overlay .sample-line {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #5c9470 65%, #e1ebe2 65%);
  transform-origin: left;
  border-radius: 5px;
}

.steps {
  list-style: none;
  gap: 1rem;
  padding-left: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: .55rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: #2a6a56;
  font: italic 400 2rem/1.05 "Instrument Serif", Georgia, serif;
  margin-bottom: .65rem;
}
.close-banner { background: linear-gradient(108deg, #10282a 15%, #25503e 100%); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .package:hover { translate: 0 -5px; border-color: #43826b; box-shadow: 0 16px 36px #25463719; }
}


@media (prefers-reduced-motion: no-preference) {
  .hero-tag, .hero-line, .hero h1 em, .hero-copy > p, .hero-actions {
    animation: copy-in .65s cubic-bezier(.2, .7, .2, 1) backwards;
  }
  .hero-line { animation-delay: .06s; }
  .hero h1 em { animation-delay: .15s; }
  .hero-copy > p { animation-delay: .22s; }
  .hero-actions { animation-delay: .28s; }
  .portfolio { animation: section-in .85s .12s cubic-bezier(.18, .65, .2, 1) backwards; }
  .entered { animation: section-in .7s cubic-bezier(.18, .65, .2, 1) backwards; }
  .entered:nth-child(2) { animation-delay: .065s; }
  .entered:nth-child(3) { animation-delay: .13s; }
  .entered .sample-line { animation: grow-line .9s .25s cubic-bezier(.2, .7, .2, 1) backwards; }
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress { display: none; }
  .package { transition: none; }
}
@keyframes copy-in { from { opacity: 1; transform: translateY(.25rem); } }
@keyframes section-in { from { opacity: .92; transform: translateY(.45rem); } }
@keyframes grow-line { from { transform: scaleX(.15); } }

