/* Homepage refresh: a lighter structure around the original color, icon, and motion system. */
:root {
  --home-gutter: clamp(1rem, 4vw, 4rem);
  --home-content: 88rem;
  --home-radius: clamp(.75rem, 1.2vw, 1.15rem);
}

body {
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.project-link {
  color: inherit;
  text-decoration: none;
}

.docs-fab {
  position: fixed;
  z-index: 60;
  right: clamp(.85rem, 2vw, 1.5rem);
  bottom: clamp(.85rem, 2vw, 1.5rem);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: var(--green);
  color: var(--primary);
  box-shadow: 4px 4px 0 var(--primary);
  font-family: Worksans, Arial, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transform: rotate(-1.5deg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1rem) rotate(-1.5deg);
  transition: transform .25s ease, box-shadow .2s ease, opacity .2s ease, visibility 0s linear .25s;
}

.docs-fab.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: rotate(-1.5deg);
  transition-delay: 0s;
}

.docs-fab span {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.docs-fab.is-visible:hover {
  transform: translate(-2px, -2px) rotate(1deg);
  box-shadow: 6px 6px 0 var(--primary);
}

.contact-send {
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-send img {
  display: block;
  height: 3.75rem;
}

.nav-w {
  inset: 0 0 auto;
  height: auto;
  padding: clamp(.75rem, 2vw, 1.25rem) var(--home-gutter) 0;
  align-items: center;
  justify-content: flex-start;
}

.nav-w .overflow-w {
  width: 100%;
  max-width: var(--home-content);
  display: flex;
  justify-content: center;
}

.sub-nav-bg {
  transform: translateY(-140%);
  opacity: 0;
  visibility: hidden;
  padding: .35rem;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 88%, transparent);
  box-shadow: 0 8px 30px rgba(39, 15, 3, .08);
  backdrop-filter: blur(16px);
  transition: transform .3s ease, opacity .2s ease, visibility 0s linear .3s;
}

.sub-nav-bg.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.sub-nav-w {
  flex-direction: row;
  align-items: center;
  gap: .1rem;
  font-family: Worksans, Arial, sans-serif;
  font-size: clamp(.68rem, .9vw, .82rem);
  font-weight: 600;
  letter-spacing: .02em;
}

.link-li-w {
  width: auto;
  padding: .58rem .9rem;
  border-radius: 999px;
  text-transform: none;
  white-space: nowrap;
}

.current-highlight {
  border-width: 1.5px;
  border-radius: 999px;
}

.sec.hero {
  padding-inline: var(--home-gutter);
  gap: clamp(.65rem, 1.5vh, 1rem);
}

.sec.hero > .comp {
  gap: clamp(.65rem, 1.5vh, 1rem);
}

.sec.hero > .comp.toggle-w {
  position: relative;
  margin: 0;
}

.sec.hero > .comp.toggle-w > .toggle-w {
  margin: 0;
}

.hero-enter-toggle { cursor: pointer; }

.hero-enter-label {
  position: absolute;
  top: 50%;
  left: calc(50% + clamp(4rem, 7vw, 5.2rem));
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: clamp(.68rem, 1vw, .8rem);
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%);
}

.hero-enter-label > span {
  display: inline-block;
  font-size: 1.05rem;
  animation: hero-enter-nudge 1.5s ease-in-out infinite;
}

@keyframes hero-enter-nudge {
  0%, 100% { transform: translateX(1px); }
  50% { transform: translateX(-3px); }
}

.sec.hero svg.scribbles-svg[data-hero="scribble"] {
  left: 50%;
  right: auto;
  top: 42%;
  bottom: auto;
  color: #ff812d;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

html[data-theme="dark"] .sec.hero svg.scribbles-svg[data-hero="scribble"] {
  color: #69e05f;
}

.sec.hero [data-hero="par"] {
  margin: 0;
}

.sec.hero .hero-intro-card {
  position: relative;
  width: min(100%, 43rem);
  padding: clamp(1rem, 2.25vw, 1.45rem) clamp(1.15rem, 3vw, 2rem);
  border: 2px solid var(--primary);
  border-radius: 1rem;
  margin-top: 1rem;
  background-color: #ca9dfe !important;
  color: #270f03;
  box-shadow: 6px 7px 0 var(--primary);
  font-size: clamp(.92rem, 1.45vw, 1.08rem);
  line-height: 1.5;
  text-align: center;
  transform: rotate(-.6deg);
}

.sec.hero .hero-intro-card::before {
  content: "A NOTE FROM VINA";
  position: absolute;
  top: -.72rem;
  left: 50%;
  padding: .28rem .65rem;
  border: 1.5px solid var(--primary);
  background: #ffe9cf;
  color: #270f03;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .1em;
  white-space: nowrap;
  transform: translateX(-50%) rotate(1.5deg);
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter-label > span { animation: none; }
}

.theme-control {
  position: fixed;
  z-index: 70;
  top: clamp(.8rem, 2vw, 1.35rem);
  right: clamp(.8rem, 2vw, 1.5rem);
}

.theme-control .btn-link {
  min-width: 8.5rem;
  padding: .72rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--primary);
  font-family: Worksans, Arial, sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease;
}

.theme-control .btn-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--primary);
}

.theme-control .btn-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.font-c.hero-text {
  font-size: clamp(4.5rem, 13vw, 13rem);
  line-height: .86;
  text-align: center;
}

section#flip.sec,
section#slider.sec,
section#marquee.sec {
  min-height: auto;
  padding: clamp(6rem, 10vw, 9rem) var(--home-gutter);
}

section#flip.sec {
  align-items: center;
}

.heading {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: .9;
}

.flip-btn-w {
  padding: .25rem;
  margin-bottom: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 999px;
}

.flip-btn-w .btn {
  min-width: 4.5rem;
  border: 0;
  border-radius: 999px;
  padding: .55rem 1rem;
}

.flip-list-w,
.flip-list-w.list {
  width: min(100%, var(--home-content));
  padding: 0;
  gap: clamp(.75rem, 1.6vw, 1.35rem);
}

.flip-list-w {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flip-list-w.list {
  display: flex;
  width: min(100%, 64rem);
  gap: .65rem;
}

.flip-item {
  min-height: clamp(12rem, 19vw, 18rem);
  padding: clamp(1rem, 2vw, 1.6rem);
  border-radius: var(--home-radius);
  outline: 0;
  box-shadow: 0 1px 0 rgba(39, 15, 3, .1), 0 14px 32px rgba(39, 15, 3, .06);
  transition: box-shadow .25s ease, filter .25s ease;
}

.flip-list-w.list .flip-item {
  min-height: 6.75rem;
}

.flip-item:hover {
  box-shadow: 0 2px 0 rgba(39, 15, 3, .14), 0 20px 42px rgba(39, 15, 3, .12);
  filter: saturate(1.04);
}

.flip-item h3 {
  max-width: 70%;
  margin: auto 0 0;
  line-height: .95;
}

.flip-item .item-num {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 999px;
  padding: .35rem .5rem;
}

.flip-item .abs-img {
  inset: auto .75rem .75rem auto;
  width: 42%;
  height: 62%;
}

#slider .comp.slider-w {
  width: min(100%, 70rem);
}

#slider .heading {
  margin-bottom: .8rem;
}

.about-intro {
  width: min(100%, 38rem);
  margin: 0 auto clamp(1.75rem, 4vw, 3rem);
  padding-inline: 1rem;
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  line-height: 1.5;
  text-align: center;
  opacity: .78;
}

#slider .stack-deck-w {
  max-width: min(58rem, calc(100vw - 2 * var(--home-gutter)));
  padding: 0;
}

.stack-deck .stack-card,
.stack-deck .stack-card .slide {
  border-radius: var(--home-radius);
}

#slider .stack-deck {
  aspect-ratio: 16 / 9;
  max-height: none;
}

#slider .stack-deck .stack-card {
  max-width: none;
}

#slider .stack-deck .stack-card .slide {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 6px 7px 0 var(--primary);
}

#slider .stack-deck .stack-card .slide::after {
  content: "";
  position: absolute;
  inset: .7rem;
  z-index: 0;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: calc(var(--home-radius) - .35rem);
}

#slider .slide-col {
  position: relative;
  z-index: 1;
}

#slider .slide-col.flex-ve {
  flex: 1.15;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.25rem);
}

#slider .slide-col:has(.slide-img) {
  flex: .85;
  padding: clamp(1rem, 2vw, 1.75rem);
}

#slider .slide-text-block {
  gap: clamp(.65rem, 1.4vw, 1rem);
}

.about-card-meta {
  align-self: flex-start;
  padding: .4rem .65rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: clamp(.62rem, 1vw, .74rem);
  font-weight: 750;
  letter-spacing: .075em;
}

#slider .slide-text-block h3 {
  max-width: 9ch;
  margin: clamp(.5rem, 1.5vw, 1rem) 0 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: .88;
  letter-spacing: .035em;
  text-shadow: none;
}

.about-card-copy {
  max-width: 39ch;
  font-size: clamp(.92rem, 1.35vw, 1.08rem);
  line-height: 1.5;
}

.about-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .25rem;
}

.about-card-tags span {
  padding: .32rem .5rem;
  border: 1.25px solid currentColor;
  border-radius: 999px;
  font-size: clamp(.56rem, .85vw, .66rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
}

#slider .slide-img {
  height: min(100%, 22rem);
  padding: .5rem;
  border: 2px solid var(--primary);
  border-radius: 50% 46% 48% 44%;
  background: color-mix(in srgb, var(--secondary) 55%, transparent);
  transform: rotate(2deg);
}

#slider .slide-image {
  overflow: hidden;
  border-radius: inherit;
}

.stack-nav-hint {
  margin-top: 1.5rem;
  font-size: .78rem;
  opacity: .78;
}

.stack-nav-hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-inline: .12rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  box-shadow: 0 2px 0 currentColor;
  font: inherit;
}

.slider-ctrls-w {
  gap: 1rem;
}

.dots-w {
  gap: .55rem;
}

.sec.inertia {
  min-height: 92svh;
}

.inertia-slide {
  width: min(42vw, 38rem);
  border-radius: var(--home-radius);
  box-shadow: 0 16px 40px rgba(39, 15, 3, .12);
}

/* Resume board */
#scrolltrigger.sec {
  min-height: auto;
  padding: clamp(6.5rem, 10vw, 9rem) var(--home-gutter);
}

#scrolltrigger .sticky-w {
  position: relative;
  top: auto;
  width: min(100%, 72rem);
  min-height: 0;
  padding: 0;
  gap: clamp(1.75rem, 4vw, 3rem);
}

#scrolltrigger .comp.video {
  width: min(100%, 52rem);
  padding: 0;
  gap: .85rem;
}

#scrolltrigger .comp.video .font-r {
  font-size: clamp(3.75rem, 8vw, 7rem);
  line-height: .9;
  letter-spacing: .025em;
  text-align: center;
}

.resume-intro {
  width: min(100%, 38rem);
  margin: 0;
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  line-height: 1.5;
  text-align: center;
  opacity: .78;
}

#scrolltrigger .resume-board {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--primary);
  border-radius: calc(var(--home-radius) * 1.35);
  background: var(--secondary);
  box-shadow: 9px 10px 0 var(--primary);
}

.resume-board-main,
.resume-board-side {
  padding: clamp(1.5rem, 4vw, 3.25rem);
}

.resume-board-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 29rem;
}

.resume-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .55rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding: .48rem .72rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .035em;
}

.resume-status span {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #10cd00;
  box-shadow: 0 0 0 4px color-mix(in srgb, #10cd00 20%, transparent);
}

.resume-eyebrow,
.resume-toolkit > p {
  margin: 0 0 .7rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .66;
}

.resume-board-main h2 {
  max-width: 12ch;
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(2.9rem, 5.5vw, 5.25rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.resume-summary {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  line-height: 1.55;
  opacity: .8;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.resume-primary,
.resume-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: .9rem 1.05rem;
  border: 2px solid var(--primary);
  border-radius: .7rem;
  color: inherit;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.resume-primary {
  background: var(--primary);
  color: var(--secondary);
}

.resume-primary:hover,
.resume-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 4px 5px 0 color-mix(in srgb, var(--primary) 35%, transparent);
}

.resume-board-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  border-left: 2px solid var(--primary);
  background: #ca9dfe;
  color: #270f03;
}

.resume-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 2px solid currentColor;
  border-radius: 1rem;
  overflow: hidden;
}

.resume-stat-grid div {
  min-height: 8rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resume-stat-grid div:nth-child(odd) { border-right: 1.5px solid currentColor; }
.resume-stat-grid div:nth-child(-n+2) { border-bottom: 1.5px solid currentColor; }
.resume-stat-grid strong { font-family: Anton, Impact, sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1; }
.resume-stat-grid span { max-width: 11ch; font-size: .72rem; font-weight: 750; line-height: 1.25; text-transform: uppercase; }

.resume-toolkit > div {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.resume-toolkit span {
  padding: .48rem .68rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
}

/* Contact dialog */
body.modal-open { overflow: hidden; }
.modal[hidden] { display: none; }
.modal {
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(12px);
  background: rgba(39, 15, 3, .58);
  transition: opacity .22s ease, visibility .22s ease;
}

.modal.is-open { opacity: 1; visibility: visible; }
.modal .modal-content {
  width: min(100%, 46rem);
  max-width: none;
  max-height: min(90vh, 52rem);
  overflow-y: auto;
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 2px solid #270f03;
  border-radius: 1.4rem;
  background: #ffe9cf;
  color: #270f03;
  box-shadow: 10px 12px 0 #270f03;
  text-align: left;
  transform: translateY(22px) scale(.98);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.modal.is-open .modal-content { transform: translateY(0) scale(1); }
.modal-accent { position: absolute; top: 0; left: 2rem; width: 7rem; height: .55rem; border-radius: 0 0 1rem 1rem; background: #f897b4; }
.modal .modal-close { top: 1.15rem; right: 1.15rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 2px solid currentColor; border-radius: 50%; font-size: 1.7rem; line-height: 1; transition: transform .2s ease, background .2s ease; }
.modal .modal-close:hover { transform: rotate(8deg); background: #f897b4; }
.modal-heading { padding-right: 3rem; margin-bottom: 1.8rem; }
.modal-kicker { display: block; margin-bottom: .65rem; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.modal-heading h2 { margin: 0; font-family: Anton, Impact, sans-serif; font-size: clamp(2.7rem, 7vw, 4.8rem); font-weight: 400; line-height: .92; text-transform: uppercase; }
.modal-heading p { max-width: 34rem; margin: .9rem 0 0; line-height: 1.5; opacity: .72; }
.modal-content form { gap: 1rem; }
.modal-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.modal-content label { display: grid; gap: .45rem; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.modal-content input,
.modal-content select,
.modal-content textarea { width: 100%; padding: .9rem 1rem; border: 1.5px solid #270f03; border-radius: .65rem; outline: none; background: rgba(255,255,255,.35); color: #270f03; font-size: 1rem; text-transform: none; transition: box-shadow .15s ease, transform .15s ease; }
.modal-content textarea { resize: vertical; min-height: 7rem; }
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus { box-shadow: 4px 4px 0 #ca9dfe; transform: translate(-2px,-2px); }
.modal-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .2rem;
}
.modal-form-footer p { margin: 0; font-size: .72rem; opacity: .6; }
.contact-submit { display: inline-flex; align-items: center; gap: 1.5rem; padding: .9rem 1rem; border: 2px solid #270f03; border-radius: .7rem; background: #270f03; color: #ffe9cf; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.contact-submit:hover { background: #00c5c5; color: #270f03; }
.contact-submit:disabled { opacity: .58; cursor: wait; }
.contact-status { min-height: 1.4rem; margin-top: 1rem; font-size: .85rem; font-weight: 750; }
.contact-status.is-success { color: #176400; }
.contact-status.is-error { color: #a92b17; }

section#marquee.sec {
  gap: clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
}

.connect-buttons {
  gap: clamp(.75rem, 2vw, 1.5rem);
  margin-top: clamp(1rem, 3vw, 2rem);
  padding: 0;
}

.connect-btn {
  width: clamp(7.5rem, 13vw, 11rem);
  height: clamp(7.5rem, 13vw, 11rem);
  border-radius: 50%;
}

button.connect-btn {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button.connect-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 5px;
}

.connect-btn:hover {
  transform: translateY(-6px) rotate(-2deg) scale(1.04);
}

@media (max-width: 900px) {
  .flip-list-w { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inertia-slide { width: min(58vw, 32rem); }
}

@media (max-width: 767px) {
  .nav-w { padding-inline: .7rem; }
  .nav-w .overflow-w { display: flex; overflow-x: auto; scrollbar-width: none; }
  .nav-w .overflow-w::-webkit-scrollbar { display: none; }
  .sub-nav-bg { display: block; transform: translateY(-140%); opacity: 0; visibility: hidden; max-width: calc(100vw - 1.4rem); overflow-x: auto; }
  .sub-nav-bg.show { transform: translateY(0); opacity: 1; visibility: visible; }
  .sub-nav-w { width: max-content; }
  .link-li-w { padding: .5rem .7rem; }
  section#flip.sec, section#slider.sec, section#marquee.sec { padding-inline: 1rem; }
  .flip-list-w { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .flip-item { min-height: 10.5rem; }
  .flip-item h3, .font-c.size-md._w-ch { max-width: 72%; font-size: clamp(1rem, 5vw, 1.4rem); }
  .flip-item .abs-img { width: 46%; height: 55%; }
  .inertia-slide { width: 68vw; }
  .connect-btn { width: clamp(6.5rem, 27vw, 9rem); height: clamp(6.5rem, 27vw, 9rem); }
  #scrolltrigger.sec { padding-inline: 1rem; }
  #scrolltrigger .resume-board { grid-template-columns: 1fr; }
  .resume-board-main { min-height: auto; }
  .resume-board-side { border-left: 0; border-top: 2px solid var(--primary); }
  .modal-fields-row { grid-template-columns: 1fr; }
  .modal-form-footer { align-items: stretch; flex-direction: column; }
  .contact-submit { justify-content: space-between; width: 100%; }
  #slider .stack-deck-w { max-width: min(34rem, calc(100vw - 2rem)); }
  #slider .stack-deck { aspect-ratio: 4 / 5; }
  #slider .stack-deck .stack-card .slide { flex-direction: column; }
  #slider .slide-col.flex-ve { flex: 1 1 58%; padding: 1.5rem 1.4rem .5rem; }
  #slider .slide-col:has(.slide-img) { flex: 1 1 42%; padding: .5rem 1.4rem 1.4rem; }
  #slider .slide-text-block h3 { margin-top: .25rem; font-size: clamp(2.25rem, 11vw, 3.5rem); }
  #slider .slide-img { width: min(72%, 14rem); height: 100%; margin-inline: auto; }
  .about-card-copy { font-size: .9rem; line-height: 1.4; }
  .stack-nav-hint { max-width: 28rem; line-height: 1.8; }
}

@media (max-width: 479px) {
  .font-c.hero-text { font-size: clamp(4rem, 22vw, 7rem); }
  .heading { font-size: 3rem; }
  .flip-list-w { grid-template-columns: 1fr; }
  .flip-item { min-height: 9rem; }
  .flip-list-w.list .flip-item { min-height: 6rem; }
  .flip-item .abs-img { width: 34%; height: 72%; }
  .inertia-slide { width: 76vw; }
  .docs-fab { font-size: .7rem; padding: .6rem .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sub-nav-bg, .flip-item, .connect-btn { transition-duration: .01ms !important; }
}
